package com.yunwaikeji.gy_tool_library.utils;

import android.content.Context;
import android.os.Handler;
import android.os.Looper;

public class GYUiUtils {
    private static final Handler mainHandler = new Handler(Looper.getMainLooper());

    public static Handler getMainHandler() {
        return mainHandler;
    }

    public static void runOnUiThread(Runnable runnable) {
        mainHandler.post(runnable);
    }

    public static void remove() {
    }

    public static boolean isDarkMode(Context context) {
        return context.getApplicationContext().getResources().getConfiguration().uiMode == 0x21;
    }
}
